package structurePattern.derector;

public class Client {
    public static void main(String[] args) {
        //一个朴素的人
        IBeauty person = new Person();
        person.show();

        //一个带戒指的人
        System.out.println("--------------------------------------");
        IBeauty ringPerson = new RingDecorator(new Person());
        ringPerson.show();

        //一个带项链的人
        System.out.println("--------------------------------------");
        IBeauty neckLacePerson = new NeckLaceDecorator(new Person());
        neckLacePerson.show();

        //一个带项链和戒指的人
        System.out.println("--------------------------------------");
        IBeauty neckLaceAndRingPerson = new NeckLaceDecorator(new NeckLaceDecorator(new Person()));
        neckLaceAndRingPerson.show();
    }
}
